package com.migo.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Wes on 2018/6/20.
 */
public class Buyers {


    public static Map buyers;

    private Buyers() {}
    private static final Buyers single = new Buyers();
    //静态工厂方法
    public static Buyers getInstance() {
        buyers = new HashMap();
        buyers.put("purple.li","7");
        buyers.put("terence.deng","4");
        buyers.put("paddy.jin","8");
        buyers.put("lily.liu","6");
        buyers.put("ryan.wang","5");
        buyers.put("janet.lai","28");
        buyers.put("yearly.yan","27");
        buyers.put("effy.wei","29");
        buyers.put("admin","0");
        return single;
    }

    //静态工厂方法
    public static Buyers getInstance2() {
        buyers = new HashMap();
        buyers.put("4","terence.deng");
        buyers.put("5","ryan.wang");
        buyers.put("6","lily.liu");
        buyers.put("27","yearly.yan");
        buyers.put("29","effy.wei");
        return single;
    }

    public static Map getBuyers() {
        return buyers;
    }

    public static void setBuyers(Map buyers) {
        Buyers.buyers = buyers;
    }
}
